package com.pkk.penguin.frame.know.springmvc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by peikunkun on 2017/12/20 0020.
 */
@Controller
@RequestMapping(value = "helloController")
public class HelloController {

  @RequestMapping(value = "/hello")
  public String helloWord(Model model) {
    model.addAttribute("message", "Hello Word!");
    return "helloWord";
  }


}
